<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../media/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="../media/bootstrap/js/bootstrap.js"></script> 
    <script src="../media/bootstrap/js/bootstrap.min.js"></script> 
</head>
	<h2 class="alert alert-success" >  <s:text  name="login.identification" ></s:text> </h2>
<s:form name="f" class="form-horizontal" action="../j_spring_security_check" method="post">

		<div class="alert alert-dismissable alert-success">
		<h4 class="text-info"><s:text name="login.instructions"></s:text></h4>
		<!-- Message d'erreur -->
		<div  class="text-danger">
			<c:if test='${not empty param.login_error}'>
			<s:text name="echec.cnx" />
		</c:if>
		</div>

	
		<!-- Champ login -->		   
		    <label for="User" ><s:text name="User" />&nbsp;:</label>
		    		<input type="text" name="j_username" class="form-control" style="width:200px;" placeholder="votre identifiant"
			value='<c:if test='${not empty param.login_error}'>${SPRING_SECURITY_LAST_USERNAME}</c:if>'
			id="j_spring_security_check_j_username" />							
		<!-- Champ mot de passe -->
		
		<label for="Password"><s:text name="Password" />&nbsp;:</label>		
		<input type="password" name="j_password" class="form-control" style="width:200px;" placeholder="mot de passe"
			id="j_spring_security_check_j_password" />									
		<!-- Soumission du formulaire -->
		<br />
		<input type="submit" class="btn btn-primary" style="width:200px;" name="Valider" value="Valider" />
	</div>
</s:form>